import { View } from '@tarojs/components'
import s from './index.module.scss'
import ListRow from 'components/ListRow'
import Icon from 'components/Icon'


interface Pathprop {
  navigateTo: any,
  back: any,
  config: any
}

export default function Index(props: Pathprop) {
  const {navigateTo, back, config} = props
  let c = 223
  return (
    <View className={s.page_role}>
      <View className={s.navigation_bar}>
        <View className={s.return} onClick={() => { back() }}>
          <Icon name='chevron-up' size={30} style={{ transform: `rotate(${-90}deg)` }} />
        </View>
        <View className={s.nabigation_title}>{config.title || ''}</View>
      </View>
      <View className={s.btn} onClick={() => {
        navigateTo('pages/backgroun_1/index',  { d: c, e: 200 })
      }}>
        <ListRow title='假设人物卡片列表'/>
      </View>
    </View>
  )
}